package ace.module.oauth2.server.core.impl.controller.rest.rpc;

import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import lombok.AllArgsConstructor;
import lombok.experimental.Delegate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import ace.cmp.rest.spring.data.jdbc.querydsl.core.controller.sdk.AbstractSdkRestController;
import ace.cmp.security.oauth2.resource.server.core.annotation.PreAuthorizeIsInternalClient;
import ace.module.common.api.annotation.ApiRemoteImplementPriority;
import ace.module.oauth2.server.api.model.dto.Oauth2AuthorizationDto;
import ace.module.oauth2.server.core.impl.dao.entity.Oauth2Authorization;
import ace.module.oauth2.server.sdk.core.feign.impl.Oauth2AuthorizationFeign;
import ace.module.oauth2.server.api.Oauth2AuthorizationApi;

/**
* 客户端认证的令牌 rpc controller.
*
* @author Caspar
*/
@Tag(name = "客户端认证的令牌-RPC-API")
@PreAuthorizeIsInternalClient
@ApiRemoteImplementPriority
@AllArgsConstructor
@RestController
@RequestMapping(Oauth2AuthorizationFeign.PATH)
public class Oauth2AuthorizationRpcController implements Oauth2AuthorizationFeign {

  @Delegate
  private final Oauth2AuthorizationApi oauth2AuthorizationApi;
  
}
